ConnectivityMonitor

Creates the desktop (JVM) monitor. Create one per process.

The probe needs explicit targets; the library never contacts a third-party host on its own:

ConnectivityMonitor {
desktop { tcp { targets = ProbeTargets.PublicResolvers + ProbeTargets.fromUrl(apiBaseUrl) } }
}

Throws

if the configuration is invalid or the selected probe has no target.


Builds the configuration with block and creates the desktop monitor; see the overload above.